<?php foreach ($data as $task): 
    echo $html->link("浏览".$task['Task']['task_name']."详细资料", array('controller' => 'tasks', 'action' => 'view', $task['Task']['id']));
endforeach;
?>